﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace YiYiTong.Rocket.Model.ParamModel
{
    /// <summary>
    /// 商品查询
    /// </summary>
    public class ProductListQueryModel : BaseQueryModel
    {
        public long? goods_id { get; set; }
        public string MPN { get; set; }

        public long label_type { get; set; } = -10;
        public long category_id { get; set; } = -10;
        public long brand_id { get; set; } = -10;
        public string brand_id_name { get; set; } = ""; 
        public long supplier_id { get; set; } = -10;
        public string supplier_id_name { get; set; } = ""; 
        public string batch { get; set; }


        /// <summary>
        /// 自动结束时间
        /// </summary>
        public DateTime? end_time_begin { get; set; }
        public DateTime? end_time_end { get; set; }

        /// <summary>
        /// 上架时间
        /// </summary>
        public DateTime? with_up_time_begin { get; set; } //= DateTime.Now.Date.AddDays(-6);
        public DateTime? with_up_time_end { get; set; } //= DateTime.Now.Date.AddSeconds(24 * 60 * 60 - 1);


        /// <summary>
        /// 下架时间
        /// </summary>
        public DateTime? with_down_time_begin { get; set; } //= DateTime.Now.Date.AddDays(-6);
        public DateTime? with_down_time_end { get; set; } //= DateTime.Now.Date.AddSeconds(24 * 60 * 60 - 1);

        /// <summary>
        /// 上下架标志 -10 所有  0 上架 默认   1 下架
        /// </summary>
        public int is_withdraw { get; set; } = 0;

        /// <summary>
        /// 是否有库存  -10 全部  0 没库存  1库存不足  2 库存充足
        /// </summary>
        public int stock_amount { get; set; } = -10;


        public string draw_down_reason { get; set; } = "";
    }
}